/*
    author: SS
*/

var express = require('express')
var router = express.Router()

/// admin
var admin = require('./admin')
router.get('/admin', admin.admin)
router.get('/admin/book', admin.book)
router.get('/admin/yo', admin.yo)
router.get('/admin/add', admin.add)
router.post('/admin/add', admin.postAdd)
router.get('/admin/delete', admin.delete)
router.get('/admin/edit', admin.findById)
router.post('/admin/edit', admin.edit)
router.get('/admin/detail', admin.detail)

module.exports = router